package Tools;

import java.util.Calendar;

public class time {
	public static int getYear() {
		Calendar now = Calendar.getInstance();  
		return now.get(Calendar.YEAR);
	}
	public static int getMonth() {
		Calendar now = Calendar.getInstance();  
		return (now.get(Calendar.MONTH) + 1);
	}
	public static int getDay() {
		Calendar now = Calendar.getInstance();  
		return now.get(Calendar.DAY_OF_MONTH);
	}
	public static int getHour() {
		Calendar now = Calendar.getInstance();  
		return now.get(Calendar.HOUR_OF_DAY);
	}
	public static int getMinute() {
		Calendar now = Calendar.getInstance();  
		return now.get(Calendar.MINUTE);
	}
	public static int getSecond() {
		Calendar now = Calendar.getInstance();  
		return now.get(Calendar.SECOND);
	}
}
